<%@page language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<table width="30%" border="1" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td>ID</td>
        <td>名字</td>
        <td>性别</td>
    </tr>
<c:forEach items="${teacher}" var="teacher">

    <tr>
        <td>${teacher.id}</td>
        <td>${teacher.name}</td>
        <td>${teacher.sex}</td>
    </tr>


</c:forEach>

</table>